class Student(object):
    def __init__(self,name,score,abc):
        self.name = name
        self.score = score
        self.__abc = abc  #可以把属性的名称前加上两个下划线__  私有变量，外部不能访问

    def print_score(self):
        print('%s: %s' % (self.name, self.score))

stu = Student('dfq',99)
stu.print_score()
stu.name = 'libai'
stu.print_score()

